package com.cbgolf.oa.presenter;

import com.cbgolf.oa.contract.IParkMapContract.IParkMapModel;
import com.cbgolf.oa.contract.IParkMapContract.IParkMapPresenter;
import com.cbgolf.oa.contract.IParkMapContract.IParkMapView;
import com.cbgolf.oa.entity.LatLon;
import com.cbgolf.oa.entity.ParkBean;
import com.cbgolf.oa.model.ParkMapModelImp;
import java.util.List;

/**
 * @author lq
 * @date 2018/4/27
 */

public class ParkMapPresenterImp implements IParkMapPresenter {

  private IParkMapView view;
  private IParkMapModel model;

  public ParkMapPresenterImp(IParkMapView view) {
    this.view = view;
    model = new ParkMapModelImp();
  }


  @Override
  public void getStatisticsInfo() {
    view.showProgress();
    model.getStatisticsInfo();
  }

  @Override
  public void filterCaddieNum(ParkBean bean) {
    model.filterCaddieNum(bean);
  }

  @Override
  public void filterId(List<LatLon> list) {
    model.filterId(list);
  }

  @Override
  public void filterCaddieWorking(ParkBean bean) {
    model.filterCaddieWorking(bean);
  }

  @Override
  public void getFirWayLatlon() {
    model.getFirWayLatlon();
  }

  @Override
  public void requestUserInfo(String userId,int type) {
    view.showProgress();
    model.requestUserInfo(userId,type);
  }
}
